package com.boot.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.boot.entity.Order;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderDao extends BaseMapper<Order> {
	
	/**
	 * 保存交易订单
	 */
	public int saveOrder(Order order);
	
	/**
	 * 获取交易订单
	 * @return
	 */
	public Order findOrder(String out_trade_no);

	/**
	 * 交易完成修改其状态为1
	 * @param out_trade_no
	 * @return
	 */
	public int finishOrder(String out_trade_no);
}
